/*  1:   */ package com.jetbrains.licenseService.responses;
/*  2:   */ 
/*  3:   */

import com.jetbrains.licenseService.Constants;
import com.jetbrains.licenseService.requests.ObtainLicenseRequest;

import java.util.Collection;
import java.util.Collections;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public class ObtainLicenseResponse
/*  9:   */   extends AbstractResponse
/* 10:   */ {
/* 11:   */   private long d;
/* 12:14 */   private Collection<EncodedAsset> e = Collections.emptyList();
/* 13:   */   
/* 14:   */   public ObtainLicenseResponse() {}
/* 15:   */   
/* 16:   */   public ObtainLicenseResponse(ResponseCode paramResponseCode, String paramString, long paramLong1, long paramLong2, Collection<EncodedAsset> paramCollection)
/* 17:   */   {
/* 18:20 */     super(paramResponseCode, paramString, paramLong2);
/* 19:21 */     this.d = paramLong1;
/* 20:22 */     this.e = paramCollection;
/* 21:   */   }
/* 22:   */   
/* 23:   */   public Collection<EncodedAsset> getAssets()
/* 24:   */   {
/* 25:26 */     return this.e;
/* 26:   */   }
/* 27:   */   
/* 28:   */   public void setAssets(Collection<EncodedAsset> paramCollection)
/* 29:   */   {
/* 30:30 */     this.e = paramCollection;
/* 31:   */   }
/* 32:   */   
/* 33:   */   public long getValidationPeriod()
/* 34:   */   {
/* 35:34 */     return this.d;
/* 36:   */   }
/* 37:   */   
/* 38:   */   public void setValidationPeriod(long paramLong)
/* 39:   */   {
/* 40:38 */     this.d = paramLong;
/* 41:   */   }
/* 42:   */   
/* 43:   */   public String toString()
/* 44:   */   {
/* 45:42 */     return "ObtainLicenseResponse[" + getResponseCode() + ", validationPeriod=" + this.d + "ms, message=" + getMessage() + ", assets=" + this.e.size() + " licenses found]";
/* 46:   */   }
/* 47:   */   
/* 48:   */   public static ObtainLicenseResponse error(String paramString, ObtainLicenseRequest paramObtainLicenseRequest)
/* 49:   */   {
/* 50:46 */     return new ObtainLicenseResponse(ResponseCode.ERROR, paramString, Constants.DEFAULT_LICENSE_CHECK_PERIOD, paramObtainLicenseRequest.getSalt(), Collections.emptyList());
/* 51:   */   }
/* 52:   */ }



/* Location:           E:\idea\

 * Qualified Name:     com.jetbrains.licenseService.responses.ObtainLicenseResponse

 * JD-Core Version:    0.7.0.1

 */